import request from '@/utils/request'

// 查询技术服务委托协议书详情
export function entrustAgreementBookDetail(agreementId) {
  return request({
    url: `/basic/agreementEntrust/queryEntrustByAgreementId/${agreementId}`,
    method: 'get',
  })
}

// 新增技术服务委托协议书
export function entrustAgreementBookAdd(data) {
  return request({
    url: `/basic/agreementEntrust/add`,
    method: 'post',
    data: data
  })
}

// 修改技术服务委托协议书
export function entrustAgreementBookEdit(data) {
  return request({
    url: `/basic/agreementEntrust/edit`,
    method: 'post',
    data: data
  })
}

// 生成委托协议书
export function entrustAgreementBookGenerator(data) {
  return request({
    url: `/basic/agreementEntrust/genAgreementEntrust`,
    method: 'post',
    data: data
  })
}
